<template>
    <p style="white-space: pre-line;">{{ msg }}</p>
    <!-- <p v-html="msg"></p> -->
</template>

<script setup name="StationStatusMonitor" lang="js">
import { ref, defineProps, defineEmits, getCurrentInstance } from "vue"
const { proxy } = getCurrentInstance()
const emit = defineEmits(['setResult'])
const { CurrentCode } = defineProps(['CurrentCode'])

const msg = ref('');

proxy.signalr.SR.on(CurrentCode + "Details", (data) => {
    console.log(data);
    msg.value = data;
    // msg.value = data.replace(/\n/g, "<br>");
})

</script>

<style scoped>

</style>